package com.py.credit.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.py.credit.common.Page;

public interface TemplateForLhjcService {

	
	public List<Map> getByConditionForPage(List<String> showColumns, String[] additionalColumns,
			String condition, Page page);
	
    public Map selectOne(@Param(value = "id") int id);
	
	public List<Map<String, Object>> selectMbCode(@Param(value = "name") String name);
	
	public String selectDb();
	
    public void startEnable(@Param(value = "id") int id);
    
    public void endEnable(@Param(value = "id") int id);
    
    public void del(@Param(value = "ids") String ids);
    
    public Integer countEnable(@Param(value = "ids") String ids);
    
    public void add(@Param(value = "name") String name, @Param(value = "status")String status,@Param(value = "content")String content);
    
    public void modify(@Param(value = "id")int id, @Param(value = "name")String name,@Param(value = "isDel")String isDel, @Param(value = "status")String status, @Param(value = "content")String content);
	
    public int selectSameName (@Param(value = "name") String name);
    
    public int selectSameStatus (@Param(value = "id") int id,@Param(value = "status") String status);
    
    public int selectOtherSameName(@Param(value = "id")int id,@Param(value = "name")String name);

}
